<?php
/*
 * @package WordPress
 * @subpackage ZeroWeight
 * 
 * Created by John Przeslakowski
 * http://blog.przeslakowski.com
 *
 */
?>
<?php if(is_sticky()): ?><p class="zero-featured">Featured</p><?php endif; ?>
	
<article id="post-<?php the_ID(); ?>" <?php post_class('row twelve columns alpha omega zero-front-post'); ?>>
	
	<section class="nine columns alpha">
		
		<hgroup>
			
			<h3 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
			
			<p class="zero-front-meta"><time datetime="<?php the_date('Y-m-d'); ?>T<?php the_time('H:i:s'); ?>" pubdate="pubdate"><a href="<?php echo get_day_link($arc_year, $arc_month, $arc_day); ?>" title="View posts published on <?php echo get_the_date(); ?>" class="zero-post-date"><?php echo get_the_date(); ?></a></time> in <span class="zero-post-categories"><?php the_category(', '); ?></span>.</p>
			
		</hgroup>
	
		<aside class="entry-content">
			<?php the_excerpt(); ?>			
		</aside>
	</section>
	
	<section class="row three columns omega zero-post-thumbnail">
		<?php 
			if(has_post_thumbnail()):
				the_post_thumbnail();
			else:
				?>
				<img width="160" height="160" src="<?php echo get_stylesheet_directory_uri(); ?>/img/thumb_small.png" class="attachment-post-thumbnail wp-post-image" alt="<?php the_title(); ?>" title="<?php the_title_attribute(); ?>">
				<?php
			endif;
		?>
		
		<aside class="zero-post-comments-link"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><span class="zero-comments-number"><?php echo get_comments_number(); ?></span> <?php comments_number('comments', 'comment', 'comments');?></a></aside>
	</section>
	
	<br class="clear" />
	
	<?php if(!has_tag()): ?>		
			<?php if(current_user_can('administrator') || current_user_can('editor')): ?>
				<p class="zero-msg warning">No tags have been assigned to this post yet. <?php edit_post_link('Tag this post.'); ?></p>
			<?php endif; ?>		
	<?php else: ?>
		<section class="zero-front-tags">
			<p>Tagged as: <?php the_tags('<span class="zero-tag">', '</span>, <span class="zero-tag">', '</span>'); ?></p>
		</section>
	<?php endif;?>
		
</article>